<template>
    <div class="goodsdesc_container">
        <h3>{{info.title}}</h3>
        <hr>
        <div class="content" v-html="info.content"></div>
    </div>
</template>

<script>
    import newsinfo from '../../../static/newsinfo.js'
    export default {
        data(){
            return {
                info: {}, // 图文数据
            }
        },
        created(){
            this.getGoodsDesc();
        },
        methods: {
            getGoodsDesc(){
                // this.$http.get('api/goods/getdesc'+this.$route.params.id).then(res=>{
                //     if(res.body.status==0){
                //         this.info=res.body.message[0];
                //     }
                // });
                this.info=newsinfo[0];
            }
        }
    }
</script>

<style lang="scss">
    .goodsdesc_container{
        padding: 0 4px;
        h3{
            font-size: 16px;
            color: #226aff;
            text-align: center;
            margin: 15px 0;
        }
        .content{
            .detail_img{
                display: block;
                width: 100%;
                margin: 0 auto 6px;
            }
            .detail_text{
                display: block;
                color: #757575;
                font-size: 14px;
                line-height: 23px;
                margin-bottom: 6px;
            }
            .detail_text .blacktit{
                color: #333;
                font-size: 16px;
            }
            .nowsignup{
                width: 215px;
                line-height: 50px;
                background: #2b2b2b;
                color: #fff;
                font-size: 17px;
                margin-top: 15px;
            }
            .table {
                width: 100%;
                border: 1px solid #ccc;
                border-bottom: none;
                margin-bottom: 12px;
            }
            .tr {
                width: 100%;
                display: flex;
                justify-content: center;
                align-items: center;
                font-size: 14px;
                border-bottom: 1px solid #ccc;
            }
            .td {
                width: 20%;
                justify-content: center;
                display: flex;
                text-align: center;
                border-right: 2px solid #ddd;
                height: 100%;
            }
            .tr-h{
                line-height: 30px;
                border-bottom: none;
            }
            .td-1 {
                width: 20%;
                justify-content: center;
                display: flex;
                text-align: center;
                height: 100%;
            }
            .td-2 {
                width: 80%;
                height: 100%;
                max-width: 100%;
                justify-content: center;
                border-left: 1px solid #ccc;
                text-align: left;
                padding: 4px;
                box-sizing: border-box;
            }
            .bg-w{
                background: #afb4db;
                border-bottom: none;
            }
            .th {
                width: 20%;
                justify-content: center;
                color: #fff;
                display: flex;
                height: 28px;
                align-items: center;
            }
            .th-2 {
                width: 80%;
                justify-content: center;
                color: #fff;
                display: flex;
                height: 28px;
                align-items: center;
                max-height: 28px;
                max-width: 80%;
                border-left: 1px solid #ccc;
                box-sizing: border-box;
            }
            .th-text{
                width: 100%;
                color: #000;
                display: block;
                padding: 0 10px;
                box-sizing: border-box;
            }
            .black{
                font-size: 15px;
                font-weight: 600;
            }
        }
    }
</style>

